package com.fanxuankai.boot.upload.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author fanxuankai
 */
@ConfigurationProperties(prefix = "fxk.upload")
public class UploadProperties {
    /**
     * 上传 url
     */
    private String url;
    /**
     * 定时扫描处理超时的任务 ms
     */
    private long timeoutInterval = 300_000;
    /**
     * 定时扫描待处理的任务 ms
     */
    private long processInterval = 300_000;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getTimeoutInterval() {
        return timeoutInterval;
    }

    public void setTimeoutInterval(long timeoutInterval) {
        this.timeoutInterval = timeoutInterval;
    }

    public long getProcessInterval() {
        return processInterval;
    }

    public void setProcessInterval(long processInterval) {
        this.processInterval = processInterval;
    }
}
